<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="seabattle.io.WebReflector"%>
<%@ page import="seabattle.field.BattleField"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/style.css" />
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Fight Page</title>
</head>
<body>
	<h1> <%= session.getAttribute("playerName")%> VS Computer </h1>
	
	<%
	WebReflector reflect = new WebReflector();
	String player = reflect.fieldsToHTML((BattleField)session.getAttribute("playerField"));
	String computer = reflect.fieldsToHTML((BattleField)session.getAttribute("computerField"));
	%>
	
	<center> <table class="sample"> <tr>
		<td><h2><%=player%></h2></td>
		<td><h2><%=computer%></h2></td>
	</tr> </table>  </center>

	<form action="engine" method="get">
		<h3>Enter the coordinates of the shot:<input type="text" name="playerShoot" /> <br>
		<input type="submit" value="Shoot" />
		<input type="reset" value="Clean" /> </h3>
		<h5>Tip: should be entered in the format {A1 or a1}</h5>
	</form>


</body>
</html>